/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

/**
 *
 * @author daz
 */
public class Counter {

    private int count;

    public Counter() {
        count = 0;
    }

    public int getValue() {
        return this.count;
    }

    public void setValue(int count) {
        this.count = count;
    }

    public synchronized void increment() {
        count++;
    }

    public synchronized void decrement() {
        count--;
    }
}
